<!-- 监管政策弹框 -->
<template>
    <div>
      <div >
        <el-form
          ref="dealMajorForm"
          :model="dealMajorForm"
          :inline="true"
          label-width="180px"
          :rules="rules"
        >
          <el-form-item label="文档标题" prop="srcSystemCode">
            <el-input v-model="dealMajorForm.srcSystemCode" placeholder="请输入">
            </el-input>
          </el-form-item>
          <el-form-item label="文档类型" prop="tradeStatus">
            <el-select
              v-model="dealMajorForm.tradeStatus"
              placeholder="请选择"
              size="mini"
              clearable
            >
              <el-option
                v-for="(item, index) in dealStatus"
                :key="index"
                :label="item.label"
                :value="item.value"
              ></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="关键字" prop="srcSystemCode">
            <el-input v-model="dealMajorForm.srcSystemCode" placeholder="请输入">
            </el-input>
          </el-form-item>
          <el-form-item label="创建人" prop="srcSystemCode">
            <el-input v-model="dealMajorForm.srcSystemCode" placeholder="请输入">
            </el-input>
          </el-form-item>
          <el-form-item label="创建时间" prop="setdata">
            <el-date-picker
              v-model="dealMajorForm.setdata"
              type="date"
              placeholder="请选择"
            >
            </el-date-picker>
          </el-form-item>
        </el-form>
      </div>
    </div>
  </template>
    
    <script>
  export default {
    props: {
      title: {
        type: String,
        default: "新增",
      },
    },
    data() {
      return {
        dealMajorForm: {
          setdata: "", //发布时间
          tradeId: "", //交易ID
          tradeVersion: "", // 交易版本号
          tradeStatus: "", //交易状态
          dataBatchDate: "", //数据批次日期
          srcSystemCode: "", //源系统名称
          srcBizCode: "", // 源系统编号
          // TRADETYPE: '', //summit55交易类型
          // TRADEID: '', //summit55交易ID
          productName: "", //产品代码
          tradeType: "", //交易类型
          subTradeType: "", //子交易类型
          bookName: "", //投资组合
          cptFullCnnm: "", //交易对手
          tradePurpose: "", //交易目的说明
          tradeDate: "", //交易日期
          tradeTime: "", //交易时间
          inputDate: "", //录入日期
          traderId: "", //交易员
          dealDir: "", //交易方向
          notional: "", //名义本金
          tradeAmount: "", //交易金额(买入)
          tradeAmount2: "", //交易金额卖出
          valueDate: "", //起息日期
          maturityDate: "", //到期日期
          settleDate: "", //结算日期
          settleDate2: "", //到期结算日期
          isMirrorFlag: "", //是否内部交易
          isClienttradeFlag: "", //是否客户交易
          netcreditFlag: "", //信用额度是否轧差:
          dataQualityType: "", //数据质量
          tradeFlag1: "", //交易标签1
          tradeFlag2: "", //交易标签2
          comment1: "", //交易备注1
          comment2: "", //交易备注2
          tradeDesc: "", //交易描述
          settleStatus: "", //结算状态
        },
        importToFromTypeOptions: [],
        importDireOptions: [],
        importGroupOptions: [],
        dealStatus: [
          {
            label: "新增",
            value: "I",
          },
          {
            label: "修改",
            value: "U",
          },
          {
            label: "删除",
            value: "D",
          },
        ],
        rules: {
          tradeStatus: [{ required: true, message: "必填项", trigger: "blur" }],
          dataBatchDate: [{ required: true, message: "必填项", trigger: "blur" }],
          productName: [{ required: true, message: "必填项", trigger: "blur" }],
          tradeType: [{ required: true, message: "必填项", trigger: "blur" }],
          bookName: [{ required: true, message: "必填项", trigger: "blur" }],
          cptFullCnnm: [{ required: true, message: "必填项", trigger: "blur" }],
          tradeDate: [{ required: true, message: "必填项", trigger: "blur" }],
        },
        TradeDataCenterCptFullCnnmDialogVisible: false,
      };
    },
  };
  </script>
    
    <style lang="scss" scoped>
  .dialog-content {
    margin-bottom: 15px;
    .content-title {
      background-color: #354060;
      line-height: 36px;
      text-align: center;
    }
    .form-content {
      padding: 16px 0;
    }
  }
  .search-icon {
    position: absolute;
    top: 0;
    right: -36px;
    color: #fff;
    z-index: 999;
    background-color: #1f9bfd;
    line-height: 32px;
    width: 32px;
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
  }
  </style>
    